{extend name="../../admin/view/main"}

{block name="button"}
<button type="button" data-reload class="layui-btn layui-btn-sm" style="font-size: 14px;">页面刷新</button>
{/block}

{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white">
    <div class="layui-tab-content table-block">
        {include file='user_tag/index_search'}
        <table class="layui-table" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='text-left '>用户ID</th>
                <th class='text-left '>新用户无付费</th>
                <th class='text-left '>新用户风险</th>
                <th class='text-left '>新用户正常</th>
                <th class='text-left '>老用户无付费</th>
                <th class='text-left '>老用户风险</th>
                <th class='text-left '>老用户正常</th>
                <th class='text-left '>老用户优质</th>
                <th class='text-left '>高风险用户</th>
                <th class="text-left">观察用户</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
                </td>
                <td class='text-left '>{$vo.user_id|default=''}</td>
                <td class='text-left '>
                    {if $vo.new_no_pay eq 1}<span class="color-green">命中</span>
                    {elseif $vo.new_no_pay eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.new_pay_risk eq 1}<span class="color-green">命中</span>
                    {elseif $vo.new_pay_risk eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.new_pay_normal eq 1}<span class="color-green">命中</span>
                    {elseif $vo.new_pay_normal eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.old_no_pay eq 1}<span class="color-green">命中</span>
                    {elseif $vo.old_no_pay eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.old_pay_risk eq 1}<span class="color-green">命中</span>
                    {elseif $vo.old_pay_risk eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.old_pay_normal eq 1}<span class="color-green">命中</span>
                    {elseif $vo.old_pay_normal eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.old_pay_high_value eq 1}<span class="color-green">命中</span>
                    {elseif $vo.old_pay_high_value eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.high_risk eq 1}<span class="color-green">命中</span>
                    {elseif $vo.high_risk eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.observe eq 1}<span class="color-green">命中</span>
                    {elseif $vo.observe eq 2}<span class="color-red">未命中</span>
                    {/if}
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        <div style="margin-top: -5px;">{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
        </div>
    </div>
</div>
{/block}